<div id="topicSelect" class="panel">
    <div class="panel-body">
        <p>论文选题</p>
        <div ng-if="viewBag.user.termName!='第五学期'">
           <div class="step0" >
                <div class="top">很抱歉，毕业设计暂未开放哦··</div>
            </div>
        </div>
        <div ng-if="viewBag.user.termName=='第五学期'">
            <div class="step0" ng-if="data.thesisState==0">
                <div class="top">暂无论文选择</div>
            </div>
            <div class="step1" ng-if="data.thesisState==-1">
                <div class="top">开始论文需要扣除相应学费</div>
                <div class="bottom">
                    <button type="button" class="btn" ng-click="start()">同意并开始论文</button>
                </div>
            </div>
            <div class="step3 " ng-if="data.thesisState==2||data.thesisState==1">
                <div class="top" ng-if="data.thesisState!=2">
                    <ul>
                        <li>已选择论文方向：{{data.thesis.topicName}}</li>
                        <li>已提交论题：{{date.thesis.topicFinalName}}</li>
                        <li>审核状态：
                            <span class="text-success" ng-if="data.thesis.thesisState==1">已通过</span>
                            <span class="text-primary" ng-if="data.thesis.thesisState==0">审核中</span>
                            <span class="text-danger" ng-if="data.thesis.thesisState==2">未通过</span></li>
                    </ul>
                </div>
                <div class="bottom">
                    <div class="result" ng-repeat="item in data.thesises">
                        <span style="background:#eee;">{{item.updateTime}}</span>
                        <ul>
                            <li>论题：
                                <span><<{{item.topicName}}>></span> 
                                <span ng-if="item.topicFinalName"><<{{item.topicFinalName}}>></span> 
                            </li>
                            <li>审核状态：
                                <span class="text-success" ng-if="item.thesisState==1">已通过</span>
                                <span class="text-primary" ng-if="item.thesisState==0">审核中</span>
                                <span class="text-danger" ng-if="item.thesisState==2">未通过</span>
                                </li>
                            <li>导师建议：{{item.teachReply}}</li>
                        </ul>
                    </div>
                  
                </div>
            </div>
            <form class="step2" ng-if="data.thesisState==3||data.thesisState==2" ng-submit="postForm()">
                <div class="form-group">
                    <label >选题方向</label>
                    <!--<select class="form-control" ng-model="topicSelect" ng-selected="select($index)">
                        <option value="0">请选择论文方向</option>
                        <option ng-repeat="item in data.datas"  value="{{data.datas.id}}">{{item.name}}</option>
                    </select>-->
                    <ui-select  ng-model="topics.selected" on-select="select()">
                        <ui-select-match placeholder="请选择论题">
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="topic in (topics | filter:$select.search) track by topic.id">
                            <span ng-bind="topic.name"></span>
                        </ui-select-choices>
                    </ui-select>
                    <input type="hidden" name="topicId" value="{{topics.selected.id}}">
                </div>
                <div class="form-group " ng-if="topics.selected.custom==1">
                    <label for="">论文题目</label>
                    <input type="text" class="form-control" name="topicFinalName" value="" placeholder="请输入论文题目">
                </div>
                <div class="form-group">
                    <button type="sumit" class="btn">确认选择</button>
                </div>
            </form>
        </div>
        
        
    </div>
</div>